package com.wei.wiki.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/*
 * @author : ShunWei
 * @date : 2022/1/28 7:41
 * @Description:
 */
@ApiModel("电子书请求类")
public class EbookQueryReq extends PageReq{
    @ApiModelProperty(value="电子书ID", example="1", required= false)
    private Long id;

    @ApiModelProperty(value="电子书名称", example="java", required= false)
    private String name;

    @ApiModelProperty(value="1级分类ID", example="100", required= false)
    private Long category1Id;

    @ApiModelProperty(value="2级分类ID", example="500", required= false)
    private Long category2Id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getCategory1Id() {
        return category1Id;
    }

    public void setCategory1Id(Long category1Id) {
        this.category1Id = category1Id;
    }

    public Long getCategory2Id() {
        return category2Id;
    }

    public void setCategory2Id(Long category2Id) {
        this.category2Id = category2Id;
    }

    public EbookQueryReq() {
    }

    public EbookQueryReq(Long id, String name, Long category1Id, Long category2Id) {
        this.id = id;
        this.name = name;
        this.category1Id = category1Id;
        this.category2Id = category2Id;
    }
}
